package com.marvels.financial.loan.dto;

import java.io.Serializable;
import java.math.BigDecimal;

import java.util.List;

public class PaymentResponse implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 错误码 0成功 -1失败 -2超时 -3异常 1交易处理中 -5 交易重复 -6 验签不一致
	 */
	private String code;

	/**
	 * 业务错误码
	 */
	private String businessErrorCode;

	/**
	 * 交易渠道
	 */
	private String channel;
	/**
	 * 返回内容
	 */
	private String content;
	/**
	 * 错误信息
	 */
	private String msg;

	/**
	 * 订单号
	 */
	private String orderNumber;

	/**
	 * 批量调用时的批量订单号
	 */
	private List<String> orderNumberList;

	/**
	 * 快付通代扣协议错误码 0待复核，1生效,2失效 -1 异常
	 */
	private String treatyCode;

	private BigDecimal successAmount;// 成功金额

	private List<SingleResult> list;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public List<String> getOrderNumberList() {
		return orderNumberList;
	}

	public void setOrderNumberList(List<String> orderNumberList) {
		this.orderNumberList = orderNumberList;
	}

	public String getBusinessErrorCode() {
		return businessErrorCode;
	}

	public void setBusinessErrorCode(String businessErrorCode) {
		this.businessErrorCode = businessErrorCode;
	}

	public String getChannel() {
		return channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	public String getTreatyCode() {
		return treatyCode;
	}

	public void setTreatyCode(String treatyCode) {
		this.treatyCode = treatyCode;
	}

	public BigDecimal getSuccessAmount() {
		return successAmount;
	}

	public void setSuccessAmount(BigDecimal successAmount) {
		this.successAmount = successAmount;
	}

	@Override
	public String toString() {
		return "PaymentResponse [code=" + code + ", businessErrorCode=" + businessErrorCode + ", channel=" + channel
				+ ", content=" + content + ", msg=" + msg + ", orderNumber=" + orderNumber + ", orderNumberList="
				+ orderNumberList + ", treatyCode=" + treatyCode + "]";
	}

	public class SingleResult implements Serializable {
		
		private static final long serialVersionUID = 1L;

		private String errorCode;

		private String errorMsg;

		public String getErrorCode() {
			return errorCode;
		}

		public void setErrorCode(String errorCode) {
			this.errorCode = errorCode;
		}

		public String getErrorMsg() {
			return errorMsg;
		}

		public void setErrorMsg(String errorMsg) {
			this.errorMsg = errorMsg;
		}

	}

	public List<SingleResult> getList() {
		return list;
	}

	public void setList(List<SingleResult> list) {
		this.list = list;
	}

}
